package anatex.service;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class AnatexSettings {

    private Boolean keaServiceEnabled;

    private Integer keaTimeInterval;

    private Boolean translationServiceEnabled;

    private Integer translationTimeInterval;
    /*
    public AnatexSettings getDefaultxxConfig(){
    	System.out.println("defcfg");
    	AnatexSettings def = new AnatexSettings();
    	def.keaServiceEnabled = true;
    	def.keaTimeInterval = 20;
    	def.translationServiceEnabled = true;
    	def.translationTimeInterval = 120;
    	return def;
    };
  
    public static AnatexSettings ARRAConfig(){
    	System.out.println("getcfg");
    	AnatexSettings config;
    	/*
    	try{
    		config = AnatexSettings.findAnatexSettingsEntries(0,1).get(0);
    	}catch(Exception ex){
    		config = getDefaultxxConfig();
    	}
    	//*//*
    	config = getDefaultxxConfig();
    	return config;
    }
	*/
}
